<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<section class="tab-pane fade" id="add" role="tabpanel">

    <form th:action="@{/admin/notice/save}" method="post" enctype="multipart/form-data" >

        <div class="form-group">
            <label for="addNoticeTitle">标题</label>
            <input id="addNoticeTitle"
                   class="form-control"
                   name="noticeTitle"
                   type="text" placeholder="请输入标题..."/>
        </div>


        <label for="addNoticeCover"> 请选择图片</label>
        <div class="input-group mb-3">
            <div class="custom-file">
                <input type="file" class="custom-file-input" id="addNoticeCover" name="noticeCover">
                <label class="custom-file-label" for="addNoticeCover">Choose file</label>
            </div>
        </div>

        <div class="form-group">
            <label for="addNoticeIntroduce">介绍</label>
            <textarea id="addNoticeIntroduce" class="form-control"
                      name="addMnoticeIntroduce" type="text" placeholder="请输入介绍..."></textarea>
        </div>

        <div class="form-group">
            <label for="addNoticeCategoryId">类目</label>
            <select id="addNoticeCategoryId"
                    class="form-control"
                    name="noticeCategoryId"
                    type="text" th:object="${result.data}">
                <option th:each="category,categoryState:*{noticeCategoryList}"
                        th:value="${category.noticeCategoryId}"
                        th:text="${category.noticeCategoryName}"></option>

            </select>
        </div>


        <button type="submit" class="mb-5 btn btn-outline-success">提交</button>

    </form>

</section>
</html>